//
//  TopCollectionViewCell.m
//  TextApplication
//
//  Created by dllo on 16/9/5.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "TopCollectionViewCell.h"
#import "TAMacro.h"

@implementation TopCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _topLabel = [[UILabel alloc] init];
        _downLabel = [[UILabel alloc] init];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
//    if (self.num == 0) {
////        self.contentView.backgroundColor = [UIColor whiteColor];
//        _topLabel.frame = CGRectMake(0, 0, CONTENTWIDTH, 20);
//        _topLabel.textAlignment = 1;
////            _topLabel.textColor = [UIColor blackColor];
//        _topLabel.font = [UIFont systemFontOfSize:15];
//        [self.contentView addSubview:self.topLabel];
//        
//        _downLabel.frame = CGRectMake(0, 20, CONTENTWIDTH, 20);
//        _downLabel.textAlignment = 1;
//            _downLabel.textColor = [UIColor blackColor];
//        _downLabel.font = [UIFont systemFontOfSize:12];
//        [self.contentView addSubview:self.downLabel];
//    } else {
    _topLabel.frame = CGRectMake(0, 0, CONTENTWIDTH, 20);
    _topLabel.textAlignment = 1;
//    _topLabel.textColor = [UIColor whiteColor];
    _topLabel.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.topLabel];
    
    _downLabel.frame = CGRectMake(0, 20, CONTENTWIDTH, 20);
    _downLabel.textAlignment = 1;
//    _downLabel.textColor = [UIColor whiteColor];
    _downLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:self.downLabel];
//    }
}


@end
